<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>

<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft HTML Help Workshop 4.0">
<title>Creating links from one contents file to another</title>
<style>@import url(coUA.css);</style>
<link disabled rel="stylesheet" href="htmlhelp.css">
<script language="JavaScript" src="master.js"></script>
</head>

<body>

<h1>Creating links from one contents file to another
</h1>

<P>HTML Help provides the capability to link from one contents file to another. This is extremely useful for creating and maintaining modular documentation. Rather than maintaining several versions of a table of contents, you can selectively combine them by linking.</P>

<h4>To create a contents file that includes links to other contents files</h4>

<ol>
	<li>Click the <b>Contents</b> tab, and then click <a onclick="doSection(inshd)" class=sidebar href="#nowhere"><b>Insert a Heading</b></a>.

	<DIV CLASS="sidebartext" ID="inshd" STYLE="display: none; height: 72px; width: 300px"
	onclick="noSection(inshd)">
<img src="sb_inshd.gif" width=64 height=64 border=0 alt="">
	<P class=margin>			
	<b>Insert a Heading</b>
	</P>
	<P class=margin2>			
	Adds a heading level icon to a table of contents with its associated name, file, URL, and style information.
	</P>
	</DIV>

	<li>Type a name for the heading that will include your contents entries from another help file, and then click <b>OK</b>.
	<li>Right-click the heading, and then click <b>Insert File</b>.
	<li>In the <b>File to include</b> box, type the following syntax:
<br><br><code>file name.chm::/contents.hhc</code><br><br>

where <code>file name.chm</code> is the name of the compiled help file and <code>contents.hhc</code> is the name of the contents file to which you want to link. 
	</li>
	</ol>

<h3>Note</h3>

	<ul>
	<li>The contents are merged at run time, which is when the compiled help (.chm) file is opened. Because of this, you must always ship the compiled help file whose contents you are merging with your main help file, and they must be stored in the same directory.
	</li>
	</ul>

<table border="0" cellpadding="0" cellspacing="0">

<tr> <td valign="top"><a href="overcnt.htm"><img src="home.gif" alt="Home page link" border="0"></a>
</td><td><a href="overcnt.htm">About creating table of contents files</a>
</td></tr>
<tr><td>&nbsp;</td></tr>
</table>

</body>
</html>
